# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
pkgname=py3-versioningit
pkgver=2.0.0
pkgrel=0
pkgdesc="Versioning It with your Version In Git"
url="https://github.com/jwodder/versioningit"
arch="noarch"
license="MIT"
depends="
	python3
	py3-setuptools
	py3-packaging
	py3-tomli
	"
makedepends="
	py3-build
	py3-installer
	py3-wheel
	"
checkdepends="mercurial py3-pytest py3-tox"
source="$pkgname-$pkgver.tar.gz::https://github.com/jwodder/versioningit/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/${pkgname#py3-}-$pkgver"

build() {
	python3 -m build --no-isolation --wheel
}

check() {
	tox -e py310
}

package() {
	python3 -m installer -d "$pkgdir" \
		dist/versioningit-$pkgver-py3-none-any.whl
}

sha512sums="
afe4780da4ff8fc1532e6ecbd3e4669e37ed2db69e842657fbd0fe05b474157f57ee1769df020a0fa84e7c3f374bb35c465994e4cf5a68d6302e0e3b5961074a  py3-versioningit-2.0.0.tar.gz
"
